package com.project.grenting.pojo;

public class Housing {
    private int id; //INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
    private String houces; // VARCHAR(100) NOT NULL,
    private  double area; // DOUBLE(10,2) NOT NULL,
    private String unitpe; // VARCHAR(100) NOT NULL,
    private double price; // DOUBLE(10,1) NOT NULL,
    private String buildingse; // VARCHAR(100) NOT NULL,
    private int status;  // INT(10) NOT NULL #(0：建成待租，1：已配租)
    public Housing(){}
    public Housing(int id,String houces,double area,String unitpe,double price,String buildingse,int status){
        this.id=id;
        this.houces=houces;
        this.area=area;
        this.unitpe=unitpe;
        this.price=price;
        this.buildingse=buildingse;
        this.status=status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getHouces() {
        return houces;
    }

    public void setHouces(String houces) {
        this.houces = houces;
    }

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public String getUnitpe() {
        return unitpe;
    }

    public void setUnitpe(String unitpe) {
        this.unitpe = unitpe;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getBuildingse() {
        return buildingse;
    }

    public void setBuildingse(String buildingse) {
        this.buildingse = buildingse;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Housing{" +
                "id=" + id +
                ", houces='" + houces + '\'' +
                ", area=" + area +
                ", unitpe='" + unitpe + '\'' +
                ", price=" + price +
                ", buildingse='" + buildingse + '\'' +
                ", status=" + status +
                '}';
    }
}
